<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>获取当前 PHP 脚本所有者名称</title>
 </head>
 <body class="docs"><div id="layout">
  <div id="layout-content"><div id="function.get-current-user" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">get_current_user</h1>
  <p class="verinfo">(PHP 4, PHP 5, PHP 7)</p><p class="refpurpose"><span class="refname">get_current_user</span> &mdash; <span class="dc-title">获取当前 PHP 脚本所有者名称</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-function.get-current-user-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>get_current_user</strong></span>
    ( <span class="methodparam">void</span>
   ) : <span class="type">string</span></div>

  <p class="simpara">
   返回当前 PHP 脚本所有者名称。
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.get-current-user-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   以字符串返回用户名。
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.get-current-user-examples">
  <h3 class="title">范例</h3>
  <p class="para">
   <div class="example" id="example-495">
    <p><strong>Example #1 <span class="function"><strong>get_current_user()</strong></span> 例子</strong></p>
    <div class="example-contents">
<div class="phpcode"><pre><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br /></span><span style="color: #007700">echo&nbsp;</span><span style="color: #DD0000">'Current&nbsp;script&nbsp;owner:&nbsp;'&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #0000BB">get_current_user</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</pre></div>
    </div>

    <div class="example-contents"><p>以上例程的输出类似于：</p></div>
    <div class="example-contents screen">
<div class="cdata"><pre>
Current script owner: SYSTEM
</pre></div>
    </div>
   </div>
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.get-current-user-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="function"><a href="getmyuid.html" class="function" rel="rdfs-seeAlso">getmyuid()</a> - 获取 PHP 脚本所有者的 UID</span></li>
    <li class="member"><span class="function"><a href="getmygid.html" class="function" rel="rdfs-seeAlso">getmygid()</a> - 获取当前 PHP 脚本拥有者的 GID</span></li>
    <li class="member"><span class="function"><a href="getmypid.html" class="function" rel="rdfs-seeAlso">getmypid()</a> - 获取 PHP 进程的 ID</span></li>
    <li class="member"><span class="function"><a href="getmyinode.html" class="function" rel="rdfs-seeAlso">getmyinode()</a> - 获取当前脚本的索引节点（inode）</span></li>
    <li class="member"><span class="function"><a href="getlastmod.html" class="function" rel="rdfs-seeAlso">getlastmod()</a> - 获取页面最后修改的时间</span></li>
   </ul>
  </p>
 </div>


</div></div></div></body></html>